import request from '@/utils/request';

// 日志监控查询占比图信息
export function getTypeProportion(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/appLog/details/getErrorTypeIndexList',
		method: 'post',
		data: data,
	});
}

// 查询组件列表
export function getErrorIps(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/appLog/details/getErrorIp',
		method: 'post',
		data: data,
	});
}

// 查询日志概况列表
export function getLogInfo(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/appLog/details/getLogInfo',
		method: 'post',
		data: data,
	});
}

// 查询日志详情列表
export function getLogDetail(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/appLog/details/getLogDetail',
		method: 'post',
		data: data,
	});
}
